package ambiente;

import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;

import compiler.Compiler;

import expr.AssignExpr;
import expr.SeqExpr;
import expr.Id;
import expr.Num;
import expr.PlusBinExpr;


public class Main {

	public static void print(SeqExpr seq) {
		try {
			System.out.println("Value: " + seq.evaluate());
		} catch (RuntimeException e) {
			System.err.println("Errore-> " + e);
		}

	}

	public static void main(String[] args) {
		System.out.println();
		try {
			BufferedReader br = new BufferedReader(
			new FileReader("mio.txt"));
				Compiler t = new Compiler(br);
				t.parse();
			} catch (IOException e) {
				System.err.println("non trovato file");
			}
	
	}
}
